const Url = {
  proposeList: '/feedback/list-data',
  roomList: '/repair/room-list',
  propose: '/feedback/save',
  chatHistory: '/feedback/message-data',
  reply: '/feedback/save-message',
  postEvaluate: '/feedback/evaluate',
}
/**
 * 建议列表
 */
export const proposeList = (params) => uni.$uv.http.get(Url.proposeList, { params, custom: { showLoading: true } })

/**
 * 房间列表
 */

export const roomList = (params) => uni.$uv.http.get(Url.roomList, { params, custom: { showLoading: true } })
/**
 * 提交建议
 */
export const propose = (params) => uni.$uv.http.post(Url.propose, params, { custom: { showLoading: false } })

/**
 * 聊天记录/内容
 */
export const chatHistory = (params) => uni.$uv.http.get(Url.chatHistory, { params, custom: { showLoading: false } })

/**
 * 保存回复
 */
export const reply = (params) => uni.$uv.http.post(Url.reply, params, { custom: { showLoading: false } })

/**
 * 评价内容
 */
export const postEvaluate = (params) => uni.$uv.http.post(Url.postEvaluate, params, { custom: { showLoading: true } })
